<?php
namespace Home\Controller;

class UserController extends HomeController {
    public function logout(){
        if ( $this['User']->logout() ) {
            $this->success('退出成功','/');
        } else {
            $this->success('退出失败','/');
        }
    }
}